home *** CD-ROM | disk | FTP | other *** search
Wrap
XXXXmmmmTTTTrrrraaaannnnssssffffeeeerrrrVVVVaaaalllluuuueeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTTrrrraaaannnnssssffffeeeerrrrVVVVaaaalllluuuueeee((((3333XXXX)))) NNNNAAAAMMMMEEEE XXXXmmmmTTTTrrrraaaannnnssssffffeeeerrrrVVVVaaaalllluuuueeee - A toolkit function that transfers data to a destination SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS #include <Xm/Xm.h> vvvvooooiiiidddd XXXXmmmmTTTTrrrraaaannnnssssffffeeeerrrrVVVVaaaalllluuuueeee( XXXXttttPPPPooooiiiinnnntttteeeerrrr ttttrrrraaaannnnssssffffeeeerrrr____iiiidddd, AAAAttttoooommmm ttttaaaarrrrggggeeeetttt, XXXXttttCCCCaaaallllllllbbbbaaaacccckkkkPPPPrrrroooocccc pppprrrroooocccc, XXXXttttPPPPooooiiiinnnntttteeeerrrr cccclllliiiieeeennnntttt____ddddaaaattttaaaa, TTTTiiiimmmmeeee ttttiiiimmmmeeee); VVVVEEEERRRRSSSSIIIIOOOONNNN This page documents Motif 2.1. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN XXXXmmmmTTTTrrrraaaannnnssssffffeeeerrrrVVVVaaaalllluuuueeee converts a selection, transferring any data from the selection owner, in the context of an already- initiated data transfer operation. An application can call this routine from an XXXXmmmmNNNNddddeeeessssttttiiiinnnnaaaattttiiiioooonnnnCCCCaaaallllllllbbbbaaaacccckkkk procedure or any function called as a result. The caller of XXXXmmmmTTTTrrrraaaannnnssssffffeeeerrrrVVVVaaaalllluuuueeee supplies the target to which the selection is converted. The caller also supplies a callback procedure to handle the data that results from the conversion. ttttrrrraaaannnnssssffffeeeerrrr____iiiidddd Specifies a unique indentifier for the data transfer operation. The value must be the same as the value of the ttttrrrraaaannnnssssffffeeeerrrr____iiiidddd member of the XXXXmmmmDDDDeeeessssttttiiiinnnnaaaattttiiiioooonnnnCCCCaaaallllllllbbbbaaaacccckkkkSSSSttttrrrruuuucccctttt passed to the XXXXmmmmNNNNddddeeeessssttttiiiinnnnaaaattttiiiioooonnnnCCCCaaaallllllllbbbbaaaacccckkkk procedure. _t_a_r_g_e_t Specifies the target to which the selection is to be converted. _p_r_o_c Specifies a callback procedure to be invoked when the selection has been converted and the data, if any, is available. This procedure is responsible for inserting or otherwise handling any data transferred. The procedure can also terminate the data transfer by calling XXXXmmmmTTTTrrrraaaannnnssssffffeeeerrrrDDDDoooonnnneeee. The _p_r_o_c receives three arguments: +o The widget that requested the conversion +o The value of the _c_l_i_e_n_t__d_a_t_a argument +o A pointer to an XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnCCCCaaaallllllllbbbbaaaacccckkkkSSSSttttrrrruuuucccctttt Page 1 (printed 10/3/02) XXXXmmmmTTTTrrrraaaannnnssssffffeeeerrrrVVVVaaaalllluuuueeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTTrrrraaaannnnssssffffeeeerrrrVVVVaaaalllluuuueeee((((3333XXXX)))) This procedure can be called before or after XXXXmmmmTTTTrrrraaaannnnssssffffeeeerrrrVVVVaaaalllluuuueeeereturns. _c_l_i_e_n_t__d_a_t_a Specifies data to be passed to the callback procedure (the value of the _p_r_o_c argument) when the selection has been converted. _t_i_m_e Specifies the time of the _X_E_v_e_n_t that triggered the data transfer. You should typically set this field to XXXXttttLLLLaaaassssttttTTTTiiiimmmmeeeessssttttaaaammmmppppPPPPrrrroooocccceeeesssssssseeeedddd. The callback procedure (the value of the _p_r_o_c argument) receives a pointer to an XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnCCCCaaaallllllllbbbbaaaacccckkkkSSSSttttrrrruuuucccctttt, which has the following definition: typedef struct { int _r_e_a_s_o_n; XEvent *_e_v_e_n_t; Atom _s_e_l_e_c_t_i_o_n; Atom _t_a_r_g_e_t; Atom _t_y_p_e; XtPointer _t_r_a_n_s_f_e_r__i_d; int _f_l_a_g_s; int _r_e_m_a_i_n_i_n_g; XtPointer _v_a_l_u_e; unsigned long _l_e_n_g_t_h; int _f_o_r_m_a_t; } XmSelectionCallbackStruct; _r_e_a_s_o_n Indicates why the callback was invoked. _e_v_e_n_t Points to the _X_E_v_e_n_t that triggered the callback. It can be NULL. _s_e_l_e_c_t_i_o_n Specifies the selection that has been converted. _t_a_r_g_e_t Specifies the target to which XXXXmmmmTTTTrrrraaaannnnssssffffeeeerrrrVVVVaaaalllluuuueeee requested conversion. The value is the same as the value of the _t_a_r_g_e_t argument to XXXXmmmmTTTTrrrraaaannnnssssffffeeeerrrrVVVVaaaalllluuuueeee. _t_y_p_e Specifies the type of the selection value. This is not the target, but the type used to represent the target. The value _X_T__C_O_N_V_E_R_T__F_A_I_L means that the selection owner did not respond to the conversion request within the Intrinsics selection timeout interval. ttttrrrraaaannnnssssffffeeeerrrr____iiiidddd Specifies a unique indentifier for the data Page 2 (printed 10/3/02) XXXXmmmmTTTTrrrraaaannnnssssffffeeeerrrrVVVVaaaalllluuuueeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTTrrrraaaannnnssssffffeeeerrrrVVVVaaaalllluuuueeee((((3333XXXX)))) transfer operation. The value is the same as the value of the ttttrrrraaaannnnssssffffeeeerrrr____iiiidddd argument to XXXXmmmmTTTTrrrraaaannnnssssffffeeeerrrrVVVVaaaalllluuuueeee. _f_l_a_g_s This member is currently unused. The value is always XXXXmmmmSSSSEEEELLLLEEEECCCCTTTTIIIIOOOONNNN____DDDDEEEEFFFFAAAAUUUULLLLTTTT. _r_e_m_a_i_n_i_n_g Indicates the number of transfers remaining for the operation specified by ttttrrrraaaannnnssssffffeeeerrrr____iiiidddd. _v_a_l_u_e Represents the data transferred by this request. The application is responsible for freeing the value by calling XXXXttttFFFFrrrreeeeeeee. _l_e_n_g_t_h Indicates the number of elements of data in _v_a_l_u_e, where each element has the size symbolized by _f_o_r_m_a_t. If _v_a_l_u_e is NULL, _l_e_n_g_t_h is 0. _f_o_r_m_a_t Indicates whether the data in _v_a_l_u_e should be viewed as a list of _c_h_a_r, _s_h_o_r_t, or _l_o_n_g quantities. Possible values are 8 (for a list of _c_h_a_r), 16 (for a list of _s_h_o_r_t), or 32 (for a list of _l_o_n_g). RRRREEEELLLLAAAATTTTEEEEDDDD XXXXmmmmTTTTrrrraaaannnnssssffffeeeerrrrSSSSeeeettttPPPPaaaarrrraaaammmmeeeetttteeeerrrrssss(3), XXXXmmmmTTTTrrrraaaannnnssssffffeeeerrrrSSSSeeeennnnddddRRRReeeeqqqquuuueeeesssstttt(3), and XXXXmmmmTTTTrrrraaaannnnssssffffeeeerrrrSSSSttttaaaarrrrttttRRRReeeeqqqquuuueeeesssstttt(3). Page 3 (printed 10/3/02)